package main

import "fmt"

func main() {
	const (
		_ = iota
		Monday
		Tuesday
		Wednesday
		Thursday
		Friday
		Saturday
		Sunday
	)
	//以上操作可以将monday从1开始，_可以定义匿名变量/常量。
	fmt.Println(Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday)

	//常量赋值时候增加表达式运算,这样常量就从2000开始，直到2009
	const (
		YEAR1 = iota + 2000
		YEAR2
		YEAR3
		YEAR4
		YEAR5
		YEAR6
		YEAR7
		YEAR8
		YEAR9
		YEAR10
	)
	fmt.Println(YEAR1, YEAR2, YEAR3, YEAR4, YEAR5, YEAR6, YEAR7, YEAR8, YEAR9, YEAR10)
}
